# -*- coding:utf-8 -*-
from django.conf.urls.defaults import patterns, url
from django.http import HttpResponseRedirect

urlpatterns = patterns('aventon.traveling.views',
    url(r'^$', lambda redirect: HttpResponseRedirect('/traveling/inicio/')),
    url(r'^inicio/$', 'inicio'),
    url(r'^registro/$', 'registro'),
    url(r'^ingresar/$', 'ingresar'),
    url(r'^perfil/$', 'perfil'),
    url(r'^salir/$', 'salir'),
    url(r'^nuevo_viaje/$', 'nuevo_viaje'),
    url(r'^nuevo_vehiculo/$', 'nuevo_vehiculo'),
    url(r'^buscar/(?P<desde>\d+)/(?P<hasta>\d+)/(?P<mes>\d{2})/(?P<dia>\d{2})/(?P<ano>\d{4})/(?P<oferta>.*)$', 'buscar')
    ,
)